FROM lujihong/hyperf:base-php8.2.2-swoole5.0.2
COPY . /opt/www

# Composer Cache
RUN composer install --no-dev --no-scripts

ENTRYPOINT ["php", "/opt/www/bin/hyperf.php", "start"]